package com.bit.controller;

import com.bit.model.UserInfo;
import com.bit.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2025-12-01
 * Time: 20:40
 */

@RequestMapping("/user")
@RestController
public class UserInfoController {

    @Autowired
    private UserInfoService userInfoService;
    @RequestMapping("/getAllUser")
    public List<UserInfo> getAllUser(){
        return userInfoService.getAllUser();
    }
}
